import { Toast } from 'antd-mobile'
import React, { Component } from 'react'
import "./Mine.less"

export default class Mine extends Component {
  out = () => {
    sessionStorage.removeItem("info")
      this.props.history.go(0)
    Toast.show({
      content: "退出成功"
    })
  }
  render() {
    return (
      <div className='mine'>
        <button onClick={() => this.out()}>退出登录</button>
      </div>
    )
  }
}
